/* 专辑页面样式 */

.album-container {
    padding: 20px 0;
}

/* 专辑头部信息样式 */
.album-header {
    display: flex;
    align-items: flex-end;
    padding: 30px;
    position: relative;
    margin-bottom: 20px;
}

.album-cover {
    width: 232px;
    height: 232px;
    margin-right: 24px;
    box-shadow: 0 4px 60px rgba(0,0,0,.5);
    position: relative;
    flex-shrink: 0;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 0, rgba(0,0,0,.4) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}

.album-cover:hover .album-gradient-overlay {
    opacity: 1;
}

.album-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.album-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.album-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.album-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-top: 4px;
}

.album-artist {
    display: flex;
    align-items: center;
}

.artist-thumbnail {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

.artist-name {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    margin-right: 4px;
}

.artist-name:hover {
    text-decoration: underline;
}

.album-year,
.album-tracks-count,
.album-duration {
    margin: 0 4px;
}

/* 专辑操作按钮 */
.album-actions {
    display: flex;
    align-items: center;
    padding: 0 30px 20px;
}

.large-play-btn {
    font-size: 16px;
    padding: 12px 32px;
    border-radius: 32px;
    margin-right: 16px;
    background-color: #1db954;
    color: white;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.large-play-btn i {
    margin-right: 8px;
}

.large-play-btn:hover {
    background-color: #1ed760;
    transform: scale(1.04);
}

.icon-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #b3b3b3;
    border: none;
    margin-right: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-button:hover {
    color: #fff;
}

.like-button {
    font-size: 18px;
}

.options-button {
    font-size: 18px;
}

/* 歌曲列表样式 */
.track-list-container {
    padding: 0 30px 20px;
}

.track-list-header {
    display: grid;
    grid-template-columns: 50px 1fr 120px;
    padding: 0 16px 8px;
    color: #b3b3b3;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 8px;
}

.track-list {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: grid;
    grid-template-columns: 50px 1fr 120px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    align-items: center;
    color: #fff;
}

.track-item:hover {
    background-color: rgba(255,255,255,.1);
}

.track-number {
    color: #b3b3b3;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-play-icon {
    display: none;
    align-items: center;
    justify-content: center;
}

.track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.track-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.track-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b3b3b3;
    font-size: 14px;
}

.track-duration {
    color: #b3b3b3;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 32px;
}

.track-actions {
    display: none;
    align-items: center;
    position: absolute;
    right: 16px;
}

.track-item:hover .track-actions {
    display: flex;
}

.track-like-btn,
.track-more-btn {
    width: 32px;
    height: 32px;
    margin: 0 4px;
    padding: 0;
    background: transparent;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-like-btn:hover,
.track-more-btn:hover {
    color: #fff;
}

/* 当前播放歌曲样式 */
.track-item.playing {
    background-color: rgba(255,255,255,.1);
}

.track-item.playing .track-name {
    color: #1db954;
}

/* 专辑详细信息 */
.album-details {
    padding: 20px 30px;
    margin-top: 20px;
}

.album-info-container {
    max-width: 800px;
}

.album-info-container h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.info-item {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    font-weight: 700;
    color: #fff;
    margin-right: 8px;
}

.info-value {
    color: #b3b3b3;
}

.album-description {
    margin-top: 16px;
    color: #b3b3b3;
    line-height: 1.6;
}

.album-copyright {
    margin-top: 24px;
    color: #777;
    font-size: 12px;
}

/* 更多专辑区域 */
.more-albums {
    padding: 20px 30px;
}

.more-albums h2,
.similar-artists h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding-bottom: 16px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card-img {
    position: relative;
    padding-bottom: 100%;
    margin-bottom: 16px;
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.card-img .play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1db954;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.card h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 16px 4px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 14px;
    margin: 0 16px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 相似艺术家样式 */
.similar-artists {
    padding: 20px 30px;
    margin-bottom: 40px;
}

.artist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.artist-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding-bottom: 16px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.artist-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.artist-img {
    position: relative;
    padding-bottom: 100%;
    margin-bottom: 16px;
}

.artist-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    padding: 16px;
}

.artist-img .play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1db954;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.artist-card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.artist-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 16px 4px;
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card p {
    font-size: 14px;
    margin: 0 16px;
    color: #b3b3b3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 提示消息样式 */
.toast-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #2e77d0;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .album-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .album-cover {
        margin-right: 0;
        margin-bottom: 20px;
        width: 180px;
        height: 180px;
    }
    
    .album-title {
        font-size: 24px;
    }
    
    .album-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .album-actions {
        justify-content: center;
    }
    
    .track-list-container,
    .album-details,
    .more-albums,
    .similar-artists {
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .card-grid,
    .artist-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .track-list-header,
    .track-item {
        grid-template-columns: 40px 1fr 80px;
    }
} 